<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>新增</title>
	<meta name="renderer" content="webkit" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/font-awesome.4.6.0.css"/>
    <link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/froala_editor.min.css" />


    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
	<link rel="stylesheet" th:href="@{/css/user.css}" media="all" />
	<link rel="stylesheet" type="text/css" th:href="@{/js/plugins/TUpload/css/upload.css}" />

    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/jquery-1.9.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/common/util.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/TUpload/js/T_upload.js}"></script>

    <!-- 富文本编辑器 -->
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/froala_editor.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/langs/zh_cn.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/lists.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/colors.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/media_manager.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/font_family.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/font_size.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/block_styles.min.js}" async="async"></script>
    <script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/plugins/video.min.js}" async="async"></script>




    <!--修缮活动图片预览框-->
</head>
<body class="childrenBody">
<!--<div class="site-text site-block">-->
    <form class="layui-form" action="" id="activityAddForm">

        <div class="layui-form-item" >
            <label class="layui-form-label">活动标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" required="required" placeholder="请输入标题" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item" >
            <label class="layui-form-label">转发数</label>
            <div class="layui-input-inline">
                <input type="text" th:value="${activity.shareNum}" name="shareNum"  class="layui-input" />
            </div>
            <div class="layui-form-mid layui-word-aux">后台可设置</div>
        </div>

       <!-- <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">活动说明</label>
            <div class="layui-input-block">
                <textarea name="content" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div> -->

        <div class="layui-form-item">
            <label class="layui-form-label">活动说用</label>
            <div class="layui-input-block">
                <section id="editor">
					<textarea name="content" id='froalaEditor' style="margin-top: 30px;" class="layui-textarea">

					</textarea>
                </section>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">deadlineTime</label>
            <div class="layui-input-inline">
                <input type="text" value="" name="deadlineTime" placeholder="请输入日期" required="required" onclick="layui.laydate({elem: this,min: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input "/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">活动列表图片上传</label>
            <div class="layui-input-block" id="T_upload">

            </div>
        </div>


        <input type="hidden" name="coverUrl" id="coverUrl"/> <!--封面图地址-->
        <input type="hidden" name="contentUrl" id="contentUrl"/> <!--封面图地址-->
        <input type="hidden" name="status" value="1" id="inforStatus"/> <!--资讯状态-->
        <input type="hidden" name="statusValue" value="待审核" id="infoStatusValue"/> <!--资讯状态值-->

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" id="submitActivity">立即提交</button>
                <!--<button class="layui-btn" lay-submit="" id="submitActivityToDraft">保存为草稿</button>-->
                <input class="layui-btn" type="submit" id="" value="立即提交" style="display: none;"/>
                <!--<input class="layui-btn" type="submit" value="保存为草稿"/>-->
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>


    </form>
<!--</div>-->

<!--<form class="layui-form" id="activityAddForm">
    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">aId</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.aId}" name="aId"  class="layui-input"  />
        </div>
    </div>

    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">id</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.id}" name="id"  class="layui-input"  />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">title</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.title}" name="title"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">shareNum</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.shareNum}" name="shareNum"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">author</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.author}" name="author"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">status</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.status}" name="status"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">isShow</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.isShow}" name="isShow"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">coverUrl</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.coverUrl}" name="coverUrl"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">contentUrl</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.contentUrl}" name="contentUrl"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">createTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="createTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">updateTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="updateTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">publishTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="publishTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">deadlineTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="deadlineTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item" >
        <label class="layui-form-label">createPerson</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.createPerson}" name="createPerson"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">content</label>
        <div class="layui-input-block">
            <input type="text" th:value="${activity.content}" name="content"  class="layui-input" />
        </div>
    </div>


	<div class="layui-form-item" style="margin-left: 5%;">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="submitActivity" lay-filter="submitActivity">立即提交</button>
			<button class="layui-btn layui-btn-primary" id="resetBtn">重置</button>
		</div>
	</div>
</form>-->

<script type="text/javascript" th:src="@{/js/activity/activityAdd.js}"></script>



</body>
</html>